var http=require('http'),qs=require('querystring');
http.createServer(function (req,res) {
    var body='';
    req.on('data', function (chunk) {
        body+=chunk;
    });
    req.on('end', function () {
        var name=qs.parse(body).name;
        console.log('Got name:',name);
        res.end('Your name is '+name);
    });
}).listen(3000, function () {
    console.log('Port 3000');
});